D = Device(camming2,camming3, camming4)
C = Calculation functions
The DC10DoubleFlyC function executes the calculations and dynamically updates the cam sectors, for execute a second cut during the flying cut (pickup cut sample piece). The parameters to pass to the function are: the length of the “sample” piece and the space of the carriage (slave) after the first cut, within which you want to conclude the second cut.
The function can only be used after you have used the DC1xFlyCut or DC2xFlyCut function for the construction of the cam provider manage the flying cut.
If the cut is not physically possible with the set parameters, the function returns the “Error” parameter the type of error occurred.
DC10DoubFlyC(Cam, Param, SpazioSMin, Error)
Parameters:
| IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
|---|---|---|---|---|
| IN | CAMMING2 CAMMING3 CAMMING4 | Cam | Nome del device utilizzato | |
| IN | ARRSYS | Param[1] | L | Lunghezza del pezzo campione (UM) |
| IN | ARRSYS | Param[2] | L | Spazio Slave (del carro) dopo il 1° taglio per eseguire il 2° taglio (UM) |
| OUT | SYSTEM | SpazioSMin | L | Spazio minimo occorrente per eseguire il 2° taglio(UM) |
| OUT | SYSTEM | Errore | B | Variabile di errore camma |
Una volta richiamata la funzione se ci sono degli errori la variabile di errore assume determinati valori, il significato di tali valori è riassunto di seguito:
0: Nessun errore
1: Parametro “maxvel” del device uguale a 0
2: Parametro “Lunghezza del pezzo campione” uguale a 0
3: Parametro “Spazio Slave 2° taglio” uguale a 0
4: Risoluzione device non corretta
5: Spazio necessario al taglio superiore a quello impostato (spazio minimo necessario riportato su “SpazioSMin”)
Un esempio di utilizzo della funzione è il seguente:
... Param[1] = 2000 ;Lunghezza del pezzo campione (UM) Param[2] = 10000 ;Spazio per 2°taglio (UM) DC10DoubFlyC(Cam, Param, SpazioSMin, Error) ...